package com.pm.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.pm.business.mapper.BidProjectPointMapper;
import com.pm.business.domain.BidProjectPoint;
import com.pm.business.service.IBidProjectPointService;

/**
 * 工作流Service业务层处理
 * 
 * @author zxl
 * @date 2022-05-17
 */
@Service
public class BidProjectPointServiceImpl implements IBidProjectPointService 
{
    @Autowired
    private BidProjectPointMapper bidProjectPointMapper;

    /**
     * 查询工作流
     * 
     * @param bppId 工作流主键
     * @return 工作流
     */
    @Override
    public BidProjectPoint selectBidProjectPointByBppId(Long bppId)
    {
        return bidProjectPointMapper.selectBidProjectPointByBppId(bppId);
    }

    /**
     * 查询工作流列表
     * 
     * @param bidProjectPoint 工作流
     * @return 工作流
     */
    @Override
    public List<BidProjectPoint> selectBidProjectPointList(BidProjectPoint bidProjectPoint)
    {
        return bidProjectPointMapper.selectBidProjectPointList(bidProjectPoint);
    }

    /**
     * 新增工作流
     * 
     * @param bidProjectPoint 工作流
     * @return 结果
     */
    @Override
    public int insertBidProjectPoint(BidProjectPoint bidProjectPoint)
    {
        return bidProjectPointMapper.insertBidProjectPoint(bidProjectPoint);
    }

    /**
     * 修改工作流
     * 
     * @param bidProjectPoint 工作流
     * @return 结果
     */
    @Override
    public int updateBidProjectPoint(BidProjectPoint bidProjectPoint)
    {
        return bidProjectPointMapper.updateBidProjectPoint(bidProjectPoint);
    }

    /**
     * 批量删除工作流
     * 
     * @param bppIds 需要删除的工作流主键
     * @return 结果
     */
    @Override
    public int deleteBidProjectPointByBppIds(Long[] bppIds)
    {
        return bidProjectPointMapper.deleteBidProjectPointByBppIds(bppIds);
    }

    /**
     * 删除工作流信息
     * 
     * @param bppId 工作流主键
     * @return 结果
     */
    @Override
    public int deleteBidProjectPointByBppId(Long bppId)
    {
        return bidProjectPointMapper.deleteBidProjectPointByBppId(bppId);
    }
}
